package com.hxht.cmp.mapper;

import com.hxht.cmp.entity.Device;
import com.hxht.cmp.pojo.DevicePojo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DeviceMapper extends Mapper<Device> {

    List<DevicePojo> selectDeviceByCourtUid(@Param("courtUid") String courtUid, @Param("courtroomName") String courtroomName);

    int countDeviceByCourtUid(@Param("courtUid") String courtUid, @Param("courtroomName") String courtroomName);

    List<DevicePojo> selectDeviceByCourtUidForPage(@Param("courtUid") String courtUid, @Param("courtroomName") String courtroomName, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
}